//
//  JMMainNavController.m
//  YaoYao
//
//  Created by JM Zhao on 16/9/18.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "JMMainNavController.h"

@interface JMMainNavController ()

@end

@implementation JMMainNavController

- (void)viewDidLoad {
    [super viewDidLoad];

    UINavigationBar *navBar = [[UINavigationBar alloc] init];
    navBar.tintColor = JMBaseColor;
    NSDictionary *attr = @{
                           NSForegroundColorAttributeName : [UIColor blackColor],
                           NSFontAttributeName : [UIFont boldSystemFontOfSize:18.0]
                           };
    navBar.titleTextAttributes = attr;
    [self setValue:navBar forKey:@"navigationBar"];
    
    self.navigationBar.translucent = YES;
    
}

- (BOOL)prefersStatusBarHidden
{
    return UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
